Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(linux): improve compatibility with Gentoo Linux 🏠 #12889

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

ermshiperete
Copy link
Contributor

@ermshiperete ermshiperete commented Jan 14, 2025

Gentoo doesn't use systemd. libelogind or basu implement some aspects of systemd, so we use that on Gentoo (or rather when libsystemd is not available but libelogind or basu is).

Patch from https://forums.gentoo.org/viewtopic.php?p=8850566.
See also https://community.software.sil.org/t/keyman-for-gentoo-linux/9615.

@keymanapp-test-bot skip

@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jan 14, 2025

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@keymanapp-test-bot keymanapp-test-bot bot changed the title chore(linux): improve compatibility with Gentoo Linux chore(linux): improve compatibility with Gentoo Linux 🏠 Jan 14, 2025
@keymanapp-test-bot keymanapp-test-bot bot added this to the A18S19 milestone Jan 14, 2025
@ermshiperete ermshiperete force-pushed the chore/linux/gentoo-compatibility branch 2 times, most recently from 8782634 to 4f65a41 Compare January 14, 2025 14:17
@darcywong00 darcywong00 modified the milestones: A18S19, A18S20 Jan 18, 2025
@ermshiperete ermshiperete force-pushed the chore/linux/gentoo-compatibility branch from 4f65a41 to 52f3d4f Compare January 27, 2025 17:09
Gentoo doesn't use systemd. `libelogind` or `basu` implement some aspects
of systemd, so we use that on Gentoo (or rather when `libsystemd` is not
available but `libelogind` or `basu` is).

Patch from https://forums.gentoo.org/viewtopic.php?p=8850566.
See also https://community.software.sil.org/t/keyman-for-gentoo-linux/9615.
@ermshiperete ermshiperete force-pushed the chore/linux/gentoo-compatibility branch from 52f3d4f to 76206c6 Compare January 27, 2025 17:11
@ermshiperete ermshiperete marked this pull request as ready for review January 28, 2025 07:57
# Gentoo can use libelogind or basu
systemd = dependency('basu')
conf.set('DBUS_IMPLEMENTATION', 'BASU')
endif
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a failure if none of these are available?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the dependency function has an implicit required: true parameter. But probably good to add it anyways to make it clearer.

`required: true` is the default for the meson `dependency` function,
but it's easy to miss.
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ermshiperete ermshiperete merged commit a4ee792 into stable-17.0 Jan 29, 2025
8 checks passed
@ermshiperete ermshiperete deleted the chore/linux/gentoo-compatibility branch January 29, 2025 08:13
ermshiperete added a commit that referenced this pull request Jan 29, 2025
Gentoo doesn't use systemd. `libelogind` or `basu` implement some aspects
of systemd, so we use that on Gentoo (or rather when `libsystemd` is not
available but `libelogind` or `basu` is).

Patch from https://forums.gentoo.org/viewtopic.php?p=8850566.
See also https://community.software.sil.org/t/keyman-for-gentoo-linux/9615.

Cherry-pick-of: #12889
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants